package com.jyh;

import com.jyh.dao.BookShopDao;
import com.jyh.service.BookShopService;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

/**
 * @author JYH
 * @version 1.0
 * @date 2022/11/14 17:31
 */
public class Test {
    public static void main(String[] args) {
        ApplicationContext app = new ClassPathXmlApplicationContext("spring.xml");
        BookShopService bookShopService = app.getBean(BookShopService.class);
        bookShopService.purchase("1001","栗毅");
    }
}
